<?php

class Jf_View_Helper_HalfReplace extends Jf_View_Helper_Abstract {

    public function halfReplace ($str) {
        $len = strlen ($str) / 2;
        return substr_replace ($str, str_repeat ('*', $len), ceil (($len) / 2), $len);
    }

}